package com.lytoyo.neihanduanzi.model.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lytoyo.neihanduanzi.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * Package:com.lytoyo.neihanduanzi.model.user
 *
 * @ClassName:UserChat
 * @Create:2025/3/4 11:52
 **/
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("chat_msg")
public class ChatMsg extends BaseEntity {
    private static final long serialVersionUID = 5L;
    //用户id
    @TableField("user_id")
    private Long userId;
    //对话用户id
    @TableField("other_user_id")
    private Long otherUserId;
    //用户昵称
    @TableField("nickname")
    private String nickname;
    //用户头像
    @TableField("head_photo")
    private String headPhoto;
    //消息类型，0为心跳包，1为文字，2为图片，3为视频
    @TableField("msg_type")
    private Integer msgType;
    //消息内容
    @TableField("msg_content")
    private String msgContent;

}
